# -*- coding: utf-8 -*-
# @Author  : Adolf  Frank
# @Time    : 2021-12-23 08:47


class FieldsBean(object):
    def __init__(self):
        # 标准的问答对
        self.standards_fields = ['id', 'user_id', 'title', 'content_type', 'question', 'answer', 'status', 'create_time',
                                 'update_time', 'exter_1', 'exter_2', 'exter_3', 'exter_4','exter_5','exter_6','remarks_1',
                                 'remarks_2']


        # 用户数据

        # 新闻数据
        self.news_fields = ['id', 'user_id', 'content_ana_type', 'title', 'content', 'content_type', 'content_link',
                            'status', 'create_time', 'update_time', 'exter_1', 'exter_2', 'exter_3', 'exter_4','exter_5',
                            'exter_6','remarks_1','remarks_2']

        # 业务数据解析结果

    #获取标准问答对的长度
    def get_standards_fields_lenght(self):
        return len(self.standards_fields)

    def get_standards_fields_list(self):
        return self.standards_fields

    #获取新闻数据的长度
    def get_news_fields_lenght(self):
        return len(self.news_fields)

    def get_news_fields_list(self):
        return self.news_fields


